using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace MMFrameworkDesign.Example
{
    public class UI : MonoBehaviour
    {
        // Start is called before the first frame update
        void Start()
        {
            GamePassEvent.Registry(OnGamePass);
        }

        private void OnGamePass()
        {
            transform.Find("GamePassPanel").gameObject.SetActive(true);
        }

        private void OnDestroy()
        {
            GamePassEvent.UnRegistry(OnGamePass);
        }
    }
 
}
